/**
 * Copyright (C), 2019-2022, 宇信融汇
 * FileName: Client01
 * Author:   666
 * Date:     2022/4/27 20:08
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package com.strategy.checkmoney;

/**
 * @Classname Client01
 * @Description TODO
 * @Date 2022/4/27 20:08
 * @Created by 666
 */
public class Client01 {
    public static void main(String[] args) {
        PayStrategy RmbPayStrategy = new RmbPay();
        PayStrategy MeiYuanPayStrategy = new MeiYuanPay();

        PayContext rmbpayContext = new PayContext("张三", 200, RmbPayStrategy);
        PayContext meiyuanpayContext = new PayContext("java", 100, RmbPayStrategy);

        RmbPayStrategy.pay(rmbpayContext);
        RmbPayStrategy.pay(meiyuanpayContext);

        PayStrategy accountpayStrategy = new AccountPay();
        PayContext account = new PayContextWithAccount("张三", 200, accountpayStrategy, "11111");
        accountpayStrategy.pay(account);

    }

}
